<html>
<head>
    <title>Demo演示</title>
    <meta charset="utf-8">
    <title>*********</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container" style="margin-top: 20px">
    <fieldset>
        <legend>
            <h2>城市展示</h2>
        </legend>
        <div class="row clearfix">
            <div class="col-md-12 column">
                <form class="form-horizontal col-md-6" role="form" action="/sell/test/query1">
                    <div class="form-group">
                        <label>城市名称</label>
                        <input name="countryName" type="text" class="form-control"
                               value="${(country.countryName)!''}"/>
                    </div>
                    <div class="form-group">
                        <label>敌我属性</label>
                        <select name="enemyAttributeId" class="form-control">
                        <#list attributeList as attribute >
                            <option value="${attribute.id}" selected>
                            ${(attribute.enemyAttrName)}
                            </option>
                        </#list>
                        </select>
                    </div>
                <#--<div class="form-group">
                    <label for="countryName" class="col-sm-2 control-label">敌我属性:</label>
                    <div class="col-sm-3">
                        <select name="countryName" class="form-control">
                        <#list attributeList as attribute >
                            <option value="${attribute.id}" selected>
                            ${(attribute.enemyAttrName)}
                            </option>
                        </#list>
                        </select>
                    </div>
                </div>-->
                    <button type="submit" class="btn btn-success btn-sm" style="margin-left: 14px">查询</button>
                </form>
            <#--<a href="/sell/test/saveList">-->
            <#--<button type="button" class="btn btn-primary btn-default" style="margin-bottom: 10px">-->
            <#--新增-->
            <#--</button>-->
            <#--</a>-->
                <div class="col-sm-6">
                    <a href="/sell/test/saveList">
                        <button type="button" class="btn btn-primary btn-info btn-sm" style="    margin-top: 150px;">
                            新增
                        </button>
                    </a>
                </div>
                <table class="table table-condensed table-hover table-bordered">
                    <thead>
                    <tr>
                    <#--<th>编号</th>-->
                        <th>城市名称</th>
                        <th>城市缩列名</th>
                        <th>敌我属性</th>
                        <th>图片名称</th>
                        <th>图片路径</th>
                        <th>创建时间</th>
                        <th colspan="3"> 操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <#list countryList as country>
                    <tr>
                        <td hidden="hidden">${country.id}</td>
                        <td>${country.countryName}</td>
                        <td>${country.englishAbb}</td>
                        <td>${(country.enemyAttribute.enemyAttrName)!''}</td>
                        <td>${country.imgName}</td>
                        <td>${country.imgPath}</td>
                        <td>${(country.createTime?string('yyyy-MM-dd hh:mm:ss'))!''}</td>
                        <td><a href="/sell/test/detail?id=${country.id}">详细</a></td>
                        <td><a href="/sell/test/update?id=${country.id}">修改</a></td>
                        <td><a href="/sell/test/delete?id=${country.id}">删除</a></td>
                    </tr>
                    </#list>
                    </tbody>
                </table>
            </div>
        </div>

    <#-- 分页-->
    <#--<div class="col-md-12 column">-->
    <#--<ul class="pagination pull-right">-->
    <#--<#if currentPage lte 1>-->
    <#--<li class="disabled"><a href="#">上一页</a></li>-->
    <#--<#else >-->
    <#--<li><a href="/sell/seller/order/list?page=${currentPage - 1}&size=${size}">上一页</a></li>-->
    <#--</#if>-->
    <#--<#list 1..countries.getTotalPages() as index>-->
    <#--<#if currentPage ==index>-->
    <#--<li class="disabled"><a href="#">${index}</a></li>-->
    <#--<#else >-->
    <#--<li><a href="/sell/seller/order/list?page=${index}&size=${size}">${index}</a></li>-->
    <#--</#if>-->
    <#--</#list>-->
    <#--<#if currentPage gte countries.getTotalPages()>-->
    <#--<li class="disabled"><a href="#">下一页</a></li>-->
    <#--<#else >-->
    <#--<li><a href="/sell/seller/order/list?page=${currentPage + 1}&size=${size}">下一页</a></li>-->

    <#--</#if>-->
    <#--</ul>-->
    <#--</div>-->

    </fieldset>
</div>

</body>
</html>